package com.elab.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class pageController {
	
	@RequestMapping(value = {"/oauth/error"})
	String oauthError () {
		return "error";
	}
	
	@RequestMapping(value = {"page/{page}"})
	String singlePage (@PathVariable(value = "page")String file) {
		file.replace(".html", "");
		return "xadmin/"+file;
	}
}
